<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/change_pwd.css">
    <script src="${pageContext.request.contextPath}/js/change_pwd.js"></script>
    <div class="change">
        <form method="post" id="form_user">
            <!-- 隐藏域 -->
            <input type="hidden" name="doc_id" value="${session_user.id}">
            <div class="change_usr">
                <span>更改用户名</span>
                <br>
                <!-- onkeyup="value=value.replace()表示正则表达式禁止输入的内容 -->
                <input type="text" placeholder="当前用户名..." name="olduser" id="olduser"
                    onkeyup="value=value.replace(/[·`~！!、|？?￥*/\\#\$%\^&\*]+/g,'');" autocomplete="off">
                <br>
                <input type="text" placeholder="新用户名..." name="user" id="user"
                    onkeyup="value=value.replace(/[·`~！!、|？?￥*/\\#\$%\^&\*]+/g,'');" autocomplete="off">
                <br>
                <input type="button" value="更改" class="button" onclick="change_user()">
                <p class="tips_usr" id="tips_usr">${error_user}</p>
            </div>
        </form>
        <form method="post" id="form_pwd">
            <!-- 隐藏域 -->
            <input type="hidden" name="doc_id" value="${session_user.id}">
            <div class="change_pwd">
                <span>更改密码</span>
                <br>
                <input type="password" placeholder="当前密码..." name="oldpwd" id="oldpwd"
                    onkeyup="value=value.replace(/[·`~！!、|？?￥*/\\#\$%\^&\*]+/g,'');">
                <br>
                <input type="password" placeholder="新密码..." name="pwd" id="pwd"
                    onkeyup="value=value.replace(/[·`~！!、|？?￥*/\\#\$%\^&\*]+/g,'');">
                <br>
                <input type="password" placeholder="重复密码..." id="repwd"
                    onkeyup="value=value.replace(/[·`~！!、|？?￥*/\\#\$%\^&\*]+/g,'');">
                <br>
                <input type="button" value="更改" class="button" onclick="change_pwd()">
                <p class="tips_pwd" id="tips_pwd">${error_pwd}</p>
                <p class="tip">密码不能输入除@以外的其它特殊字符</p>
            </div>
        </form>
    </div>